package com.atguigu.product.products.dao;

import com.atguigu.product.products.entity.PmsSkuSaleAttrValueEntity;
import com.atguigu.product.products.vo.respVo.item.SkuItemSaleAttrVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * sku销售属性&值
 * 
 * @author qhw
 * @email qhw@gmail.com
 * @date 2021-08-03 19:57:10
 */
@Mapper
public interface PmsSkuSaleAttrValueDao extends BaseMapper<PmsSkuSaleAttrValueEntity> {

    List<SkuItemSaleAttrVo> querySaleWithAttrs(@Param("spuId") Long spuId);

    List<String> cartSkuId(@Param("skuId") Long skuId);
}
